const socket: any = io('ws://localhost:3000');
socket.on('connect', () => {
	console.log('连接成功');
}); 
// 监听与服务器连接断开事件
socket.on('disconnect', () => {
	console.log('连接断开成功');
});

export default socket;